//package com.game.login.config;
//
//import org.springframework.boot.jdbc.DataSourceBuilder;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import javax.sql.DataSource;
//@Configuration
////@Component
//public class DataSourceConfig {
//    @Bean
//    public DataSource dataSource(){
//        DataSourceBuilder dataSourceBuilder=DataSourceBuilder.create();
//        dataSourceBuilder.driverClassName("com.mysql.cj.jdbc.Driver");
//        dataSourceBuilder.url("jdbc:mysql://39.103.162.3:3306/joolun_mall?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=UTC");
//        dataSourceBuilder.username("root");
//        dataSourceBuilder.password("Qwq@123456");
//        return dataSourceBuilder.build();
//    }
//}
//
